import { createRequest } from './create-request';

export const request = createRequest({
	baseURL: import.meta.env.VITE_APP_BASE_API, // 浏览器地址
	// getToken: () => (browser ? localStorage.getItem('dhzy_token') : null)
	withCredentials: true // 关键：让浏览器自动带 Cookie
});
